package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 地层破裂压力 对应表 BA_FRACTURE_PRESSURE
public class BA_FracturePressure extends BABaseEntity{
    @Id
    @GenericGenerator(name="fractureGenerator", strategy="uuid")
    @GeneratedValue(generator="fractureGenerator")
    private String BA_FracturePressure_ID;

    @Basic
    @Column(name = "WELLDEPTH")
    private Double wellDepth;

    @Basic
    @Column(name = "VERTICALDEPTH")
    private Double verticalDepth;

    @Basic
    @Column(name = "FRACTUREPRESSUREED")
    private Double fracturePressureED;

    @Basic
    @Column(name = "PRESSURE")
    private Double pressure;

    @ManyToOne
    @JoinColumn(name="ba_well_id")
    private BA_Well well;

}
